[INFO] cloning repository https://github.com/Nakazaki4/rust-localserver
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Nakazaki4/rust-localserver" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FNakazaki4%2Frust-localserver", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FNakazaki4%2Frust-localserver'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] 731734d95d520a41fe466a54b2a8ca6d900d806c
[INFO] fixing Nakazaki4/rust-localserver against try#622891a4e29178280638a6b63a8908bde2c0c854+cargoflags=-Zfix-edition=start=2015 for pr-157817-2
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FNakazaki4%2Frust-localserver" "/workspace/builds/worker-6-tc1/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc1/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/Nakazaki4/rust-localserver
[INFO] finished tweaking git repo https://github.com/Nakazaki4/rust-localserver
[INFO] tweaked toml for git repo https://github.com/Nakazaki4/rust-localserver written to /workspace/builds/worker-6-tc1/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/Nakazaki4/rust-localserver on toolchain 622891a4e29178280638a6b63a8908bde2c0c854
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+622891a4e29178280638a6b63a8908bde2c0c854" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/Nakazaki4/rust-localserver already has a lockfile, it will not be regenerated
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+622891a4e29178280638a6b63a8908bde2c0c854" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/source:/opt/rustwide/workdir:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-m" "1610612736" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:3a6becf2bc8dde7f3fa57ede90e4f284e72d296796fc446bbb1e2c7cc0530151" "sleep" "infinity", kill_on_drop: false }`
[INFO] [stdout] 2c3ebfa1a8f5a03970197dd85f2bfe7299eb5fbbfb54905fc1841ac164892533
[INFO] running `Command { std: "docker" "start" "2c3ebfa1a8f5a03970197dd85f2bfe7299eb5fbbfb54905fc1841ac164892533", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-w" "/opt/rustwide/workdir" "--user" "0:0" "2c3ebfa1a8f5a03970197dd85f2bfe7299eb5fbbfb54905fc1841ac164892533" "/opt/rustwide/cargo-home/bin/cargo" "+622891a4e29178280638a6b63a8908bde2c0c854" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "2c3ebfa1a8f5a03970197dd85f2bfe7299eb5fbbfb54905fc1841ac164892533", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=" "-e" "RUSTDOCFLAGS=" "-w" "/opt/rustwide/workdir" "--user" "0:0" "2c3ebfa1a8f5a03970197dd85f2bfe7299eb5fbbfb54905fc1841ac164892533" "/opt/rustwide/cargo-home/bin/cargo" "+622891a4e29178280638a6b63a8908bde2c0c854" "fix" "--allow-no-vcs" "--allow-dirty" "--frozen" "--all" "--all-targets" "--message-format=json" "-Zfix-edition=start=2015", kill_on_drop: false }`
[INFO] [stderr]     Checking log v0.4.32
[INFO] [stderr]     Checking mio v1.2.1
[INFO] [stderr]     Checking rust-localserver v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/config.rs:91:9
[INFO] [stdout]    |
[INFO] [stdout] 91 |     let mut config = AppConfig {
[INFO] [stdout]    |         ----^^^^^^
[INFO] [stdout]    |         |
[INFO] [stdout]    |         help: remove this `mut`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0382]: use of moved value
[INFO] [stdout]    --> src/config.rs:124:25
[INFO] [stdout]     |
[INFO] [stdout] 118 |             current_route = Some(route);
[INFO] [stdout]     |             ------------- this reinitialization might get skipped
[INFO] [stdout] ...
[INFO] [stdout] 124 |             if let Some(route) = current_route {
[INFO] [stdout]     |                         ^^^^^ value moved here, in previous iteration of loop
[INFO] [stdout]     |
[INFO] [stdout]     = note: move occurs because value has type `Route`, which does not implement the `Copy` trait
[INFO] [stdout] help: borrow this binding in the pattern to avoid moving the value
[INFO] [stdout]     |
[INFO] [stdout] 124 |             if let Some(ref route) = current_route {
[INFO] [stdout]     |                         +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0382]: use of moved value
[INFO] [stdout]    --> src/config.rs:125:29
[INFO] [stdout]     |
[INFO] [stdout]  96 |     let mut current_server: Option<ServerConfig> = None;
[INFO] [stdout]     |         ------------------ move occurs because `current_server` has type `Option<ServerConfig>`, which does not implement the `Copy` trait
[INFO] [stdout] ...
[INFO] [stdout] 107 |             current_server = Some(ServerConfig::default());
[INFO] [stdout]     |             -------------- this reinitialization might get skipped
[INFO] [stdout] ...
[INFO] [stdout] 125 |                 if let Some(server) = current_server {
[INFO] [stdout]     |                             ^^^^^^ value moved here, in previous iteration of loop
[INFO] [stdout] ...
[INFO] [stdout] 129 |                 app_config.push(current_server);
[INFO] [stdout]     |                                 -------------- value moved here, in previous iteration of loop
[INFO] [stdout] ...
[INFO] [stdout] 176 |                 .unwrap()
[INFO] [stdout]     |                  -------- `current_server` moved due to this method call, in previous iteration of loop
[INFO] [stdout]     |
[INFO] [stdout] help: borrow this binding in the pattern to avoid moving the value
[INFO] [stdout]     |
[INFO] [stdout] 125 |                 if let Some(ref server) = current_server {
[INFO] [stdout]     |                             +++
[INFO] [stdout] help: you could `clone` the value and consume it, if the `ServerConfig: Clone` trait bound could be satisfied
[INFO] [stdout]     |
[INFO] [stdout] 175 |             current_server.clone()
[INFO] [stdout]     |                           ++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0596]: cannot borrow `server.routes` as mutable, as `server` is not declared as mutable
[INFO] [stdout]    --> src/config.rs:126:21
[INFO] [stdout]     |
[INFO] [stdout] 126 |                     server.routes.push(route);
[INFO] [stdout]     |                     ^^^^^^^^^^^^^ cannot borrow as mutable
[INFO] [stdout]     |
[INFO] [stdout] help: consider changing this to be mutable
[INFO] [stdout]     |
[INFO] [stdout] 125 |                 if let Some(mut server) = current_server {
[INFO] [stdout]     |                             +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0382]: borrow of moved value: `current_server`
[INFO] [stdout]    --> src/config.rs:154:38
[INFO] [stdout]     |
[INFO] [stdout]  96 |     let mut current_server: Option<ServerConfig> = None;
[INFO] [stdout]     |         ------------------ move occurs because `current_server` has type `Option<ServerConfig>`, which does not implement the `Copy` trait
[INFO] [stdout] ...
[INFO] [stdout]  99 |     for (i, raw_line) in content.lines().enumerate() {
[INFO] [stdout]     |     ------------------------------------------------
[INFO] [stdout]     |     |
[INFO] [stdout]     |     inside of this loop
[INFO] [stdout]     |     inside of this loop
[INFO] [stdout] ...
[INFO] [stdout] 107 |             current_server = Some(ServerConfig::default());
[INFO] [stdout]     |             -------------- this reinitialization might get skipped
[INFO] [stdout] ...
[INFO] [stdout] 129 |                 app_config.push(current_server);
[INFO] [stdout]     |                                 -------------- value moved here, in previous iteration of loop
[INFO] [stdout] ...
[INFO] [stdout] 154 |         } else if let Some(server) = current_server.as_mut() {
[INFO] [stdout]     |                                      ^^^^^^^^^^^^^^ value borrowed here after move
[INFO] [stdout] ...
[INFO] [stdout] 176 |                 .unwrap()
[INFO] [stdout]     |                  -------- `current_server` moved due to this method call, in previous iteration of loop
[INFO] [stdout]     |
[INFO] [stdout] note: if `ServerConfig` implemented `Clone`, you could clone the value
[INFO] [stdout]    --> src/config.rs:7:1
[INFO] [stdout]     |
[INFO] [stdout]   7 | pub struct ServerConfig {
[INFO] [stdout]     | ^^^^^^^^^^^^^^^^^^^^^^^ consider implementing `Clone` for this type
[INFO] [stdout] ...
[INFO] [stdout] 129 |                 app_config.push(current_server);
[INFO] [stdout]     |                                 -------------- you could clone this value
[INFO] [stdout] note: `Option::<T>::unwrap` takes ownership of the receiver `self`, which moves `current_server`
[INFO] [stdout]    --> /rustc/622891a4e29178280638a6b63a8908bde2c0c854/library/core/src/option.rs:1010:24
[INFO] [stdout] help: you could `clone` the value and consume it, if the `ServerConfig: Clone` trait bound could be satisfied
[INFO] [stdout]     |
[INFO] [stdout] 175 |             current_server.clone()
[INFO] [stdout]     |                           ++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `server`
[INFO] [stdout]    --> src/config.rs:128:32
[INFO] [stdout]     |
[INFO] [stdout] 128 |             } else if let Some(server) = current_server {
[INFO] [stdout]     |                                ^^^^^^ help: if this is intentional, prefix it with an underscore: `_server`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0382, E0596.
[INFO] [stdout] 
[INFO] [stdout] For more information about an error, try `rustc --explain E0382`.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `rust-localserver` (bin "rust-localserver") due to 4 previous errors; 2 warnings emitted
[INFO] [stderr] warning: build failed, waiting for other jobs to finish...
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/config.rs:91:9
[INFO] [stdout]    |
[INFO] [stdout] 91 |     let mut config = AppConfig {
[INFO] [stdout]    |         ----^^^^^^
[INFO] [stdout]    |         |
[INFO] [stdout]    |         help: remove this `mut`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0382]: use of moved value
[INFO] [stdout]    --> src/config.rs:124:25
[INFO] [stdout]     |
[INFO] [stdout] 118 |             current_route = Some(route);
[INFO] [stdout]     |             ------------- this reinitialization might get skipped
[INFO] [stdout] ...
[INFO] [stdout] 124 |             if let Some(route) = current_route {
[INFO] [stdout]     |                         ^^^^^ value moved here, in previous iteration of loop
[INFO] [stdout]     |
[INFO] [stdout]     = note: move occurs because value has type `Route`, which does not implement the `Copy` trait
[INFO] [stdout] help: borrow this binding in the pattern to avoid moving the value
[INFO] [stdout]     |
[INFO] [stdout] 124 |             if let Some(ref route) = current_route {
[INFO] [stdout]     |                         +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0382]: use of moved value
[INFO] [stdout]    --> src/config.rs:125:29
[INFO] [stdout]     |
[INFO] [stdout]  96 |     let mut current_server: Option<ServerConfig> = None;
[INFO] [stdout]     |         ------------------ move occurs because `current_server` has type `Option<ServerConfig>`, which does not implement the `Copy` trait
[INFO] [stdout] ...
[INFO] [stdout] 107 |             current_server = Some(ServerConfig::default());
[INFO] [stdout]     |             -------------- this reinitialization might get skipped
[INFO] [stdout] ...
[INFO] [stdout] 125 |                 if let Some(server) = current_server {
[INFO] [stdout]     |                             ^^^^^^ value moved here, in previous iteration of loop
[INFO] [stdout] ...
[INFO] [stdout] 129 |                 app_config.push(current_server);
[INFO] [stdout]     |                                 -------------- value moved here, in previous iteration of loop
[INFO] [stdout] ...
[INFO] [stdout] 176 |                 .unwrap()
[INFO] [stdout]     |                  -------- `current_server` moved due to this method call, in previous iteration of loop
[INFO] [stdout]     |
[INFO] [stdout] help: borrow this binding in the pattern to avoid moving the value
[INFO] [stdout]     |
[INFO] [stdout] 125 |                 if let Some(ref server) = current_server {
[INFO] [stdout]     |                             +++
[INFO] [stdout] help: you could `clone` the value and consume it, if the `ServerConfig: Clone` trait bound could be satisfied
[INFO] [stdout]     |
[INFO] [stdout] 175 |             current_server.clone()
[INFO] [stdout]     |                           ++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0596]: cannot borrow `server.routes` as mutable, as `server` is not declared as mutable
[INFO] [stdout]    --> src/config.rs:126:21
[INFO] [stdout]     |
[INFO] [stdout] 126 |                     server.routes.push(route);
[INFO] [stdout]     |                     ^^^^^^^^^^^^^ cannot borrow as mutable
[INFO] [stdout]     |
[INFO] [stdout] help: consider changing this to be mutable
[INFO] [stdout]     |
[INFO] [stdout] 125 |                 if let Some(mut server) = current_server {
[INFO] [stdout]     |                             +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0382]: borrow of moved value: `current_server`
[INFO] [stdout]    --> src/config.rs:154:38
[INFO] [stdout]     |
[INFO] [stdout]  96 |     let mut current_server: Option<ServerConfig> = None;
[INFO] [stdout]     |         ------------------ move occurs because `current_server` has type `Option<ServerConfig>`, which does not implement the `Copy` trait
[INFO] [stdout] ...
[INFO] [stdout]  99 |     for (i, raw_line) in content.lines().enumerate() {
[INFO] [stdout]     |     ------------------------------------------------
[INFO] [stdout]     |     |
[INFO] [stdout]     |     inside of this loop
[INFO] [stdout]     |     inside of this loop
[INFO] [stdout] ...
[INFO] [stdout] 107 |             current_server = Some(ServerConfig::default());
[INFO] [stdout]     |             -------------- this reinitialization might get skipped
[INFO] [stdout] ...
[INFO] [stdout] 129 |                 app_config.push(current_server);
[INFO] [stdout]     |                                 -------------- value moved here, in previous iteration of loop
[INFO] [stdout] ...
[INFO] [stdout] 154 |         } else if let Some(server) = current_server.as_mut() {
[INFO] [stdout]     |                                      ^^^^^^^^^^^^^^ value borrowed here after move
[INFO] [stdout] ...
[INFO] [stdout] 176 |                 .unwrap()
[INFO] [stdout]     |                  -------- `current_server` moved due to this method call, in previous iteration of loop
[INFO] [stdout]     |
[INFO] [stdout] note: if `ServerConfig` implemented `Clone`, you could clone the value
[INFO] [stdout]    --> src/config.rs:7:1
[INFO] [stdout]     |
[INFO] [stdout]   7 | pub struct ServerConfig {
[INFO] [stdout]     | ^^^^^^^^^^^^^^^^^^^^^^^ consider implementing `Clone` for this type
[INFO] [stdout] ...
[INFO] [stdout] 129 |                 app_config.push(current_server);
[INFO] [stdout]     |                                 -------------- you could clone this value
[INFO] [stdout] note: `Option::<T>::unwrap` takes ownership of the receiver `self`, which moves `current_server`
[INFO] [stdout]    --> /rustc/622891a4e29178280638a6b63a8908bde2c0c854/library/core/src/option.rs:1010:24
[INFO] [stdout] help: you could `clone` the value and consume it, if the `ServerConfig: Clone` trait bound could be satisfied
[INFO] [stdout]     |
[INFO] [stdout] 175 |             current_server.clone()
[INFO] [stdout]     |                           ++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `server`
[INFO] [stdout]    --> src/config.rs:128:32
[INFO] [stdout]     |
[INFO] [stdout] 128 |             } else if let Some(server) = current_server {
[INFO] [stdout]     |                                ^^^^^^ help: if this is intentional, prefix it with an underscore: `_server`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0382, E0596.
[INFO] [stdout] 
[INFO] [stdout] For more information about an error, try `rustc --explain E0382`.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `rust-localserver` (bin "rust-localserver" test) due to 4 previous errors; 2 warnings emitted
[INFO] running `Command { std: "docker" "inspect" "2c3ebfa1a8f5a03970197dd85f2bfe7299eb5fbbfb54905fc1841ac164892533", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "2c3ebfa1a8f5a03970197dd85f2bfe7299eb5fbbfb54905fc1841ac164892533", kill_on_drop: false }`
[INFO] [stdout] 2c3ebfa1a8f5a03970197dd85f2bfe7299eb5fbbfb54905fc1841ac164892533
